﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NGUYENTHANHDONG
{
    public partial class FormStudent : Form
    {
        public FormStudent()
        {
            InitializeComponent();
        }

        private void FormStudent_Load(object sender, EventArgs e)
        {
            HocSinh hs = new HocSinh("SV01", "Hoàng Văn Thanh", "thanhhv@gmail.com", "0988123456");

            lsbDanhSach.Items.Add("Mã Sinh Viên: " + hs.MASV);
            lsbDanhSach.Items.Add("\nHọ Tên: " + hs.HOTEN);
            lsbDanhSach.Items.Add("\nEmail: " + hs.EMAIL);
            lsbDanhSach.Items.Add("\nSDt: " + hs.DIENTHOAI);

            HocSinh hs2 = new HocSinh("SV02", "Phạm Thị Thùy Linh", "linhptt@gmail.com", "0988123457");

            lsbDanhSach.Items.Add("\nMã Sinh Viên: " + hs2.MASV);
            lsbDanhSach.Items.Add("\nHọ Tên: " + hs2.HOTEN);
            lsbDanhSach.Items.Add("\nEmail: " + hs2.EMAIL);
            lsbDanhSach.Items.Add("\nSDt: " + hs2.DIENTHOAI);

            HocSinh hs3 = new HocSinh("SV03", "Trần Văn Hiếu", "hieutv@gmail.com", "0988123458");

            lsbDanhSach.Items.Add("\nMã Sinh Viên: " + hs3.MASV);
            lsbDanhSach.Items.Add("\nHọ Tên: " + hs3.HOTEN);
            lsbDanhSach.Items.Add("\nEmail: " + hs3.EMAIL);
            lsbDanhSach.Items.Add("\nSDt: " + hs3.DIENTHOAI);

            HocSinh hs4 = new HocSinh("SV04", "Nguyễn Văn Hùng", "hungnv@gmail.com", "0988123459");

            lsbDanhSach.Items.Add("\nMã Sinh Viên: " + hs4.MASV);
            lsbDanhSach.Items.Add("\nHọ Tên: " + hs4.HOTEN);
            lsbDanhSach.Items.Add("\nEmail: " + hs4.EMAIL);
            lsbDanhSach.Items.Add("\nSDt: " + hs4.DIENTHOAI);
        }
    }
}
